package com.hoshiicloud;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AccessLevel;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.experimental.ExtensionMethod;
import lombok.experimental.FieldDefaults;

/**
 * @author chenjie
 * @date 2019/7/2-10:21
 * @email rogercj1@126.com
 */
@ApiModel
@Data
public class BaseEntity implements Serializable {
    private static final long serialVersionUID = 702589365197980173L;
    /**
     * 创建时间
     */
    @ApiModelProperty(name = "createdTime", value = "创建时间", required = true, dataType = "java.util.Date", example = "2019-05-04 10:08:35", hidden = true)
    private LocalDateTime createdTime;

    /**
     * 创建人
     */
    @ApiModelProperty(name = "createdBy", value = "创建人", required = true, dataType = "java.lang.String", example = "admin", hidden = true)
    private String createdBy;

    /**
     * 修改时间
     */
    @ApiModelProperty(name = "modifiedTime", value = "修改时间", required = true, dataType = "java.util.Date", example = "2019-05-04 10:08:35", hidden = true)
    private LocalDateTime modifiedTime;

    /**
     * 修改人
     */
    @ApiModelProperty(name = "modifiedBy", value = "修改人", required = true, dataType = "java.lang.String", example = "admin", hidden = true)
    private String modifiedBy;

}
